Book = Widget.extend({
	ctor:function(){
		this._super();
		this.init();
		this.setTag(TAG_BOOK_ALL);
	},
	init:function(){
		this.body = new Button(this, 10, TAG_BOOK, "#book1.png", this.callback,this);
	},
	callback:function(p){
		var func=cc.callFunc(function() {
			gg.flow.next();
		},this);
		switch(p.getTag()){
		case TAG_BOOK:
			p.runAction(cc.sequence(cc.callFunc(function() {
				p.setSpriteFrame("book2.png");
			},this),cc.delayTime(2),cc.callFunc(function() {
				p.setVisible(false);
			},this),func));
			break;
		}
	}
});